﻿using Eassets.Layered.Domain;
using Eassets.Data;
using System.Collections.ObjectModel;

namespace Eassets.Service
{
    public class CompanyDetailsService
    {
        CompanyDetailsData companyDetailsData = new CompanyDetailsData();

        public void InsertCompanyDetails(CompanyDetails companyDetails)
        {
            companyDetailsData.Insert(companyDetails);
        }

        public void ModifyCompanyDetails(CompanyDetails companyDetails)
        {
            companyDetailsData.Update(companyDetails);
        }

        public void DeleteCompanyDetails(int locationId)
        {
            companyDetailsData.Delete(locationId);
        }

        public Collection<CompanyDetails> GetAllCompanyDetails()
        {
            return companyDetailsData.GetAllCompanyDetails();
        }

    }
}
